# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=lsplug
pkgver=4
pkgrel=1
pkgdesc="Improved lsusb"
url="https://git.sr.ht/~martijnbraam/lsplug"
arch="noarch"
license="MIT"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~martijnbraam/lsplug/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/lsplug-refs/tags/$pkgver/"
options="!check" # no tests provided by upstream

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
5ccdd9b5adcbb9087c8bf4013294a9a39a77581371f2a103c620f7301aca27a42e3e5eeecc84915fab8f84fcff13e9a121ae09d7a9ff6974e2263431442c4f1c  lsplug-4.tar.gz
"
